package day11_special_file_log_code.com.itheima.d1_properties;

import java.io.FileWriter;
import java.io.IOException;
import java.util.Properties;

public class Demo2_Properties {
    public static void main(String[] args) throws IOException {
        Properties properties = new Properties();
        properties.setProperty("admin","666");
        properties.setProperty("toot","lisi");
        properties.setProperty("金毛狮王","ai");

        System.out.println("properties = " + properties);

        properties.store(new FileWriter("java_02_Pro/src/main/java/day11_special_file_log_code/com/itheima/d1_properties/users2.properties"),"i saved users");

    }
}
